package com.wh.book2.model;

import lombok.Data;

@Data
public class PageRequest {
    private Integer pageNum = 1;
    private Integer pageSize = 5;

    public Integer getLimit() {
        return this.pageSize;
    }

    public Integer getOffSet() {
        return (this.pageNum - 1) * this.pageSize;
    }

}
